import request from '@/utils/request';

export async function queryRule(params?: Object) {
  return request('/api/sys/site/attr', {
    method: 'GET',
    params,
  });
}

export async function updateRule(data: Object) {
  return request('/api/sys/site/attr', {
    method: 'put',
    data,
  });
}
